package com.cskaoyan.catmall.model.vo;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @date: 2022-01-10-14-11
 * @author: ZYY
 * @description:
 */
@NoArgsConstructor
@Data
public class BrandListWxVo {

    private int total;
    private int pages;
    private int limit;
    private int page;
    private List<BrandListDataWxVo> list;

    public static BrandListWxVo data(long total, int pages, int limit, int page, List list){
        BrandListWxVo brandListVo = new BrandListWxVo();
        brandListVo.setTotal((int) total);
        brandListVo.setPages(pages);
        brandListVo.setLimit(limit);
        brandListVo.setPage(page);
        brandListVo.setList(list);
        return brandListVo;
    }
}